#include <stdio.h>
#include "operaciones.h"


int sum_seg (int p, int q, int z, int *a)
{
  int r=0,n=p;
  while (n!=q+1)
    {
      r=r+a[n];
      n=n+1;
    }
  return r;
}
